package com.qww;

public class Exec06 {
    public static void main(String[] args) {
        Cat c1 = new Cat();
        c1.name = "spot";
        c1.says = "Ruff!";
        Cat c2 = new Cat();
        c2.name = "scruffy";
        c2.says = "Wurf!";
        Cat c = c1;
        System.out.println(c == c1);  // true
        System.out.println(c.equals(c1));  // true
    }
}

class Cat {
    String name;
    String says;
}
